package com.lanou3g.ptp.api.service;

import com.lanou3g.ptp.entity.GradeItem;
import com.lanou3g.ptp.entity.GradeRole;
import com.lanou3g.ptp.entity.Student;
import com.lanou3g.ptp.entity.Teacher;
import com.lanou3g.ptp.utils.PtpResult;
import com.lanou3g.ptp.vo.GradeInfo;

import java.io.InputStream;

public interface ApiGradeService {
    PtpResult addGrade(GradeRole gradeRole);

    PtpResult deleteById(Long id);

    PtpResult update(GradeRole gradeRole);

    InputStream findAll();

    boolean grade(Teacher teacher, GradeItem gradeItem);


    boolean addEvaluatingTeacher(Long id, Integer score, Long taskId);

    GradeInfo getMyGradeInfo(Student student, Long taskId);
}
